/*
 * @Author: Kilims Ye
 * @Date: 2020-09-24 16:39:49
 * @LastEditTime: 2021-03-31 09:40:04
 * @LastEditors: Kilims Ye
 * @Description:
 * @FilePath: /react-mobile-seeds/src/context/reducers/appReducers.js
 */
import { ENUM_LIST } from "@context/constants/appConstants";

let reducer = (state, action) => {
  const { is } = Object;

  if (is(action.type, ENUM_LIST)) {
    return {
      ...state,
      enumList: action.payload,
    };
  }

  return state;
};

export default reducer;
